<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加新邮件</title>


<link rel="stylesheet" href="/css/theme/font-awesome.min.css" type="text/css" />		
<link rel="stylesheet" href="/css/theme/bootstrap.min.css" type="text/css" />	
<link rel="stylesheet" href="/javascript/theme/libs/jquery-easyui-1.4/themes/default/easyui.css" type="text/css" />		
<link rel="stylesheet" href="/css/theme/App.css" type="text/css" />
<link rel="stylesheet" href="/css/theme/custom.css" type="text/css" />
<script src="/javascript/theme/libs/jquery-1.9.1.min.js"></script>
<script src="/javascript/theme/libs/jquery-easyui-1.4/jquery.easyui.min.js"></script>
<script src="/javascript/theme/libs/bootstrap.min.js"></script>
<script src="/javascript/theme/App.js"></script>
<script type="text/javascript" src="/javascript/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/javascript/report/FusionCharts.js"></script>
<script type="text/javascript" src="/javascript/iemail.js" ></script>


<style type="text/css">
.table1 {
	border: 1px solid rgb(153, 187, 232);width:100%;
}
.table_head {
	background: #B0C9E7; height: 25px; text-align: left; line-height: 25px; text-indent: 20px; font-weight: bolder;
}
.table_con {
	background: rgb(223, 232, 246);
}
.table_in {
	background: rgb(208, 208, 208); border: 0px currentColor; margin-top: 5px; margin-bottom: 5px;border-collapse: separate;border-spacing: 2px;
}
.table_in th {
	background: #F0F1F3; height: 22px; border-bottom-color: rgb(208, 208, 208); border-bottom-width: 1px; border-bottom-style: solid; text-align:center;
}
.table_in .td1 {
	background: #F0F1F3; height: 22px; text-align: center;border-bottom-color: rgb(208, 208, 208); border-bottom-width: 1px; border-bottom-style: solid; text-align:center;
}
.table_in td {
	height: 22px; text-align: right; line-height: 22px; border-bottom-color: rgb(237, 237, 237); border-bottom-width: 1px; border-bottom-style: solid;text-align:center;
}
.tdbg10 {
	background: rgb(238, 239, 241);
}
.tdbg11 {
	background: rgb(255, 255, 255);
}

</style>

</head>
<body>
<div id="content" style="OVERFLOW-X:yes;OVERFLOW-Y:auto">		
		
	<div id="content-container">
		
		<form class="form-horizontal" role="form" id="setEmailContent" name="setEmailContent" action="/intemail/addNewEmail " method="post" onsubmit="return subCheck();">
    		
			<input type="hidden" id="dbTemplate" name="dbTemplate" value="$!{dbTemplate}"/>
			<div class="portlet">
    			
    				<div class="portlet-header">
    					<h3>
    						<i class="fa fa-tasks"></i>
    						邮件基本信息
    					</h3>
    			
    				</div> <!-- /.portlet-header -->
    			
    		
                	<div class="portlet-content">
    					<div class="form-group">
							<label class="col-md-2">邮件名称：</label>
							<div class="col-md-2">
								<input style="width:360px" type="text" title="邮件名称" id="baseMainInfo" name="baseMainInfo" value="$!{emailName}" class="form-control"/>
							</div>
    							
    						<label class="col-md-2">邮件所属类别：</label>
        					<div class="col-md-2">
    							<input style="width:360px" type="text" title="邮件所属类别" id="baseMainInfo" name="baseMainInfo" value="$!{emailCate}" class="form-control"/>
        					</div>
    								
    						##<button type="button" id="subMail" name ="subMail" class="btn btn-primary btn-xs">确认订阅</button>
						</div>
					
						</br>
    					<div class="form-group">
    						<label class="col-md-2">收件人列表(英文分号;间隔):</label>
        					<div class="col-md-2">
        						<input style="width:750px"type="text" title="收件人列表" id="baseSendInfo" name="baseSendInfo" value="$!{emailAds}" class="form-control"/>
        					</div>
    								
        				</div>
						
						</br>
    					<div class="form-group">
    						<label class="col-md-2">邮件内容描述：</label>
        					<div class="col-md-2">
        						<input style="width:815px" type="text" id="baseMainInfo" name="baseMainInfo"  value="$!{description}" class="form-control"/>
        					</div>
    								
        				</div>
    							
						</br>
    					<div class="form-group">
							<input type="hidden" title="发送频率" id="sendFreValue" name="sendFreValue" value="$!{sendFreValue}"/>
    						<label class="col-md-2">发送频率:</label>
    						<div class="col-md-2">
        						<input type="radio" name="sendFreRadio" id="sendFreRadio" onclick="sendFre('day')"/> 每日
        						<input type="radio" name="sendFreRadio" id="sendFreRadio" onclick="sendFre('week')"/> 每周1
								<input type="radio" name="sendFreRadio" id="sendFreRadio" onclick="sendFre('self')"/> 自定义
    						</div>
    							
        					<div class="col-md-2" id="userDefinedFre">
        						<input type="text" alias="freValue" readonly='true' id="baseSendInfo" name="baseSendInfo"  value="$!{userDefinedFreValue}" class="form-control"/>
                                 
        					</div>
							<label class="col-md-2" style="color:red">(周1-周日分别为1-7,中间以英文分号;隔开)</label>
							<label class="col-md-2">发送时间</label>
							<div class="col-md-2">
        						<input  type="text" title="发送时间" id="baseSendInfo" name="baseSendInfo" style="width:120px;height:25px" class="Wdate form-control" value="$!{sendTime}" onclick="WdatePicker({skin:'ext',dateFmt:'HH:mm:ss'})"/>
        					</div>
        					
     					       
        				</div>
                        </br>

                        <div class="form-group">
                            <label class="col-md-2">阈值1</label>
                            <div class="col-md-2">
                                <input  style="width:60px" type="text" title="阈值1" id="baseSendInfo" name="baseSendInfo"  value="0.5" class="form-control"/>
                            </div>  
                            
                            <label class="col-md-2">阈值2</label>
                            <div class="col-md-2">
                                <input  style="width:60px" type="text" title="阈值2" id="baseSendInfo" name="baseSendInfo"  value="0.25" class="form-control"/>
                            </div>   
                            <label class="col-md-2">预警短信</label>
                            <div class="col-md-2">
                                <input type="text" style="width:100px" title="预警短信" id="baseSendInfo" name="baseSendInfo"  value="13522482231;13811583416" class="form-control"/>
                            </div>
                            <label class="col-md-2">预警邮件收件人(英文分号;间隔):</label>
                            <div class="col-md-2">
                                <input style="width:400px"type="text" title=">预警邮件收件人" id="baseSendInfo" name="baseSendInfo" value="zhaoxiang@58.com;huangliang@58.com" class="form-control"/>
                            </div>

						</div>
        			</div>
                   
    			
			</div> <!-- /.portlet -->

    		<div class="portlet">
    			
    				<div class="portlet-header">
    					<h3>
    						<i class="fa fa-tasks"></i>
    						邮件内容配置
    					</h3>
    			
    				</div> <!-- /.portlet-header -->
					
					<input type="hidden" id="tableCount" name="tableCount" value="$!{tableCount}"/>
    		
                	<div id="toAddEmailTem" class="portlet-content">
						
    					<div class="form-group">
							<label class="col-md-2">表格模板类型：</label>
							<div class="col-md-2">
								<select size="1"  class="form-control" style="height:28px; width:130px;" name="tableTempType" id="tableTempType" onchange="templateChange()">
									#foreach( $template in $templateList)
                                        <option value="$!{template.id}" >$!{template.name}</option>
									#end
                                </select>
							</div>
							
							<label class="col-md-2">表格大小：</label>
							<div class="col-md-2" id="tableRowDiv">
								<input style="width:55px" type="text" id="tableRow" name="tableRow"  value="$!{tableRow}" class="form-control"/>行数
							</div>
							<div class="col-md-2" id="tableX" >
								X
							</div>
							<div class="col-md-2" id="tableColDiv" >
								<input style="width:55px" type="text" id="tableCol" name="tableCol"  value="$!{tableCol}" class="form-control"/>列数
							</div>
                            <div class="col-md-2" id="tableRowDiv2" >
                                <input style="width:55px" type="text" id="tableRow2" name="tableRow2"  value="$!{tableRow2}" class="form-control"/>分行数
                            </div>
							<div class="col-md-2" id="tableColDiv2" >
								<input style="width:55px" type="text" id="tableCol2" name="tableCol2"  value="$!{tableCol2}" class="form-control"/>分列/行数
							</div>
    						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    						<button type="button" id="addNewTable" name ="addNewTable" class="btn btn-primary btn-xs">新增表格</button>
    						<input type="button"  id="addNewEmail" name ="addNewEmail" style="float:right" class="btn btn-primary btn-xs" value="添加邮件"/>		
						</div>
						
						<div id="tabs" class="easyui-tabs" data-options="tabWidth:112">
  			
  			
						</div>	<!-- /#id="tabs" -->
						
						
        		</div><!-- /toAddEmailTem -->
                   
    			
			</div> <!-- /.portlet -->

		</form>
	</div> <!-- /#content-container -->
	
	
</div> <!-- #content -->
	

</body>
</html>